package com.icinfo.cloud.provider.common.dicenum;

public enum ApplyLevelNameEnum {
    applyLevelNameQB("0","全部"),
    applyLevelNameSJ("1","省级机构"),
    applyLevelNameDS("2","地市机构"),
    applyLevelNameQX("3","区县机构"),
    applyLevelNamePC("4","派出机构"),
    applyLevelNameXZ("5","乡镇机构");
    private String code;
    private String explain;


    private ApplyLevelNameEnum(String code, String explain) {
        this.code = code;
        this.explain = explain;
    }
    public static String getExplainByCode(String code) {
        for (ApplyLevelNameEnum approvalFlowEnum : ApplyLevelNameEnum.values()) {
            if (approvalFlowEnum.getCode().equals(code)) {
                return approvalFlowEnum.getExplain();
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }
}
